package me.iholo.controller;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;


/**
 * Created by iholome on 2017/6/15 0015.
 */
@Controller
public class IndexController {
    private Logger logger= LogManager.getLogger(IndexController.class);
    /**首页*/
    @GetMapping("/")
    public String index(){
        return "index";
    }
    /**登录*/
    @GetMapping("/login")
    public String loginPage(){
        return "login";
    }

    /**注册*/
    @GetMapping("/register")
    public String register(){
        return "register";
    }
}
